a09f87c37818841e32c2e417ec1bc2101ebd711e,plugins/android-designer/src/com/intellij/android/designer/designSurface/layout/LinearLayoutOperation.java,LinearLayoutOperation,LinearLayoutOperation,#RadViewComponent#OperationContext#boolean#,47

Before Change



    if (context.isMove()) {
      myExcludes = new ArrayList<Gravity>();
      for (RadComponent component : context.getComponents()) {
        String fill;
        if (myHorizontal) {
          fill = ((RadViewComponent)component).getTag().getAttributeValue("android:layout_height");
        }
        else {
          fill = ((RadViewComponent)component).getTag().getAttributeValue("android:layout_width");

After Change


  public LinearLayoutOperation(RadViewComponent container, OperationContext context, boolean horizontal) {
    super(container, context, horizontal);

    if (context.isMove() && context.getComponents().size() == 1) {
      myExclude = getGravity(myHorizontal, context.getComponents().get(0));
    }
  }